{include file="public/user_shop_head" /}
{include file="public/href" /}
<link rel="stylesheet" type="text/css" href="__STATIC__/css-wap/style.css">
<div class="main">
    <ul class="list">
        <li><span><a href="shop_index?shop_id={:input('shop_id')}">店铺首页</a></span></li>
        <li><span><a href="all_goods?shop_id={:input('shop_id')}">全部商品</a></span></li>
        <li><span><a href="sales_promote?shop_id={:input('shop_id')}">促销</a></span></li>
        <li class="cur"><span><a href="new_list?shop_id={:input('shop_id')}">上新</a></span></li>
    </ul>
    <input type="hidden" id="shop_id" value="{:input('shop_id')}"/>
</div>
{volist name="goods_list" id="vo"}
<p style="text-align: center;font-size: 12px;line-height: 24px;"><span class="cir"></span><span class="note"> -{$vo.date}本店上新- </span><span class="cir"></span></p>
<ul class="list_group">
    {volist name="vo['list']" id="vs"}
    <li>
        <a href="#">
            <div class="pic">
                <img src="/{$vs.thumb_img}" style="height: 150px;" onerror=this.src="/static/mobile/img/empty_img.png">
            </div>
            <h4 class="title">{$vs.title}</h4>
            <div class="price">&yen;{$vs.price}<span class="sale_num">销量{$vs.sale_number}</span>
            </div>
        </a>
    </li>
    {/volist}
</ul>
{/volist}
{include file="public/shop_footer" /}
</div>
{include file="public/src" /}
<script>
    //搜索
    function search_title() {
        var shop_id = $('#shop_id').val(),
                search = $('#search').val();
        window.location.href = "?shop_id=" + shop_id + "&search=" + search;
    }
    //未登录跳转到登录
    function jump_login() {
        layer.open({
            content: '您还未登录,请登录'
            , btn: ['去登录', '取消']
            , yes: function (index) {
                window.location.href = "{:url('mobile/user_port/login')}";
                layer.close(index);
            }
        });
    }
</script>
</body>
</html>